package com.heima.apis.article;

import com.heima.apis.article.fallback.IArticleFallback;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.article.dtos.ArticleCollectionDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ybw
 * @version 1.0
 * @date 2021/12/14 15:35
 */
@FeignClient(value = "leadnews-article", fallback = IArticleFallback.class)
public interface IArticleClient {
  /**
   * 远程调用 app端存储文章接口
   *
   * @param articleDto
   * @return
   */
  @PostMapping("/api/v1/article/save")
  ResponseResult saveArticle(@RequestBody ArticleDto articleDto);

}
